import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:sheet',
      order: -1,
      title: $t('page.baseData.title'),
    },
    name: 'BaseData',
    path: '/baseData',
    children: [
      {
        name: 'Vehicle',
        path: '/baseData/vehicle',
        component: () => import('#/views/baseData/vehicle/index.vue'),
        meta: {
          icon: 'lucide:car',
          title: $t('page.baseData.vehicle'),
        },
      },
      {
        name: 'Driver',
        path: '/baseData/driver',
        component: () => import('#/views/baseData/driver/index.vue'),
        meta: {
          icon: 'lucide:book-user',
          title: $t('page.baseData.driver'),
        },
      },
      {
        name: 'Subsidy',
        path: '/baseData/subsidy',
        component: () => import('#/views/baseData/subsidy/index.vue'),
        meta: {
          icon: 'lucide:receipt-japanese-yen',
          title: $t('page.baseData.subsidy'),
        },
      },
    ],
  },
];

export default routes;
